add main.cpp to server