made chatclient/chatserver singletons