- Added seperate functions for firmware_check and bootflag reset
- deactivated optimizations