main.cpp additional error fixes