before_restart added 2