add a message_type attribute