update bootloader to detect mainframe