merging usbmux connection code