added some chat functionality