add a hook for #3