rafactoring of configuration