replication protocol works properly