updated Hooks to accept the event name for determining the path in which to execute scripts