added chat functionality again