first implementation of pathfinder unit