add main class to client and server