replication cleanup