more pathfinding improvements