implemented basic two-way chat