use self.cfg.update for adjusting unwanted_env_vars