added usb reset code