updated replication class