add a message entity and use it in the client

une array to string conversion error