improved local file scan