waypoints generation