added autoSetup of the polyline