fixes some environment vars