added chat protocol