cleaning up post_hook