setup replication tasks behind a variable