Notes on chain replication