bootloader fixes