a whole mess of pathfinding work and bear stuff