add docs/example for afterHook