added check for bootloader