draft implementation of replication