integrate ccid and usb threads