updated hook scripts