adding post_compile hook