clean some environment config