changes name of main and saves as in build.cpp