added usb connection code