append message to messages