adds general chat functionality