added set_global_registry