pathfinding fixes