added bootloader stuff for mac