only write config if old val != new val