better file type support with mime type