add waypoint functions