added the message endpoint