adding a debugging hook to showcase after hook