cleanup and build script