updated the message formats as per API.md