breakout build into install and post_install hooks