hook script