working on chat client