updated bootloader configuration and added hook