updates env reference.