moving hooks to sub-path