add new method get_message_type to allow for multiple message types