add ability to flash from external source