fixes to main.cpp