moved pre build things to install phase