refactoring serial
start of flashing code
more successful flasher