avoid duplicate usb config code