improve build script.