updated hook to be more verbose