tidy up env settings