serial/flasher tweaks to try and make flashing faster/more reliable