hooktree implemented