fixed pathfinding (mostly)