generalizing the replication comm scenario