waypoint loading  code works