configs and improvements on media types