set config in registry