worked on client and chat-client