halfway in chat functionality