refactor reset config to support start fresh

at more than once place (failure, successful update ...)