renamed main.cpp to server.cpp