basic chatting functionality working