moved apikey to registry.