adding usbstats, refactoring