emergency update to main.cpp

attempt to fix