- restore default config after extension update properly
- config functionality refactoring