working on chat system (finally)