added restart hook.