split install and build