experimental post_compile hook