more preparation for waypoint generation