fixing config module bugs