change of before_restart