split out mime type resolution