def set_config(self, var_name, var_default):
        new_val = self.config.get(var_name, var_default)
        try:
            cur_val = self.config[var_name]
            if new_val != cur_val:
                self.config_changed = True
        except:
            self.config_changed = True