updated hook script format