added usb writing