implement chat protocol version 2