split out build script