refactored pathfinder