begin to add a USB debug console, clean the code