refractored graceFulReload