more flexible mime type check