get congiguration refactoring