hook script now working