refactored conf module