added post_compile hook handler