minor changes. replication protocol works properly