add shortcircuit for hooks