small fixes into main.cpp