making replication work into public and private