main Pathfinder program now uses filename output