modified chat protocol