configuration refac