build script adapted