changed max waypoints to 8