fixed chat, awaiting client.h and server.h