1410271927: move some functions into vehiclemanager