epoch handled in both client and server.cpp