documentation for replication