fix restore problems with custom config files