factor out the config change code so we can call it from install too