started on waypoints
more work on waypoints; forgot .length earlier