config->Cfg for scope visibility and add registers