chat functionality working at a basic level