get basic chat functionality working