improvement: scanning by mimetype