revamping build script