add switch for media type setting