main() optimization for faster boot up times