now detects mime types