get type from Message.Type, not from the Fields