Hooks

fixes #5