refactor build script
refactor build script