correct callbacks in firmware flasher, optimize speed by updating UI between read/write operations