refactory configuration