config refact