script that updates the hooks