simplify post_install hook