added automatic reverse-replication implementation