add basic chat functionality