rest hook deliverer
hook cleanup logic