move hooks to module root