fix scanning imports