implemented getWaypoint stuff