debugging for setting waypoints