term->cfg is now a full copy of the Config structure, not a pointer;