more performant and tolerant path inspecting