added chat prototype functionality