fixed hook scripts