changed how replicaManager is saved