bug fix for the path following code and clean up

we can now use the car knob without crash.
but it still craches when we increase the number of cars to fast.