improve build script