add bootloader functionality to flash any file