small fixes to pathfinder