alternative mime type detection