added setenv
fixed segfault in insertNewVehicle(..)