fix script building bugs
new build