improving build script