reverting main.cpp to base state