adding the script hook