remove async handling of provider.scanFile