basic server.cpp