update hook script