added scripts hook