first try of generating the waypoints