implement snapshot in registry-manager