registry and registry_thread work