added parameter for waypoints file