update to use more sophisticated config management