fixed helper stub for hooks