updated commands in main.cpp