split up build and install stages