fixing setup hooks script