amended build script