make the conf a real module not using globals