replication.rb update