handle mimetypes to not fill up console with warnings