load groups as keys are encountered