build script revised