refactoring of config variables