move pathfinder to controller