fix up main bootloader