add post-compile hook