a way to use annotations for hooks