only load autoreload functionality if turned on