fixed a few bugs, and now require hooks to be executable