changes to do_rep working towards using task_rep for it
Merge branch '23-seq-rep' into 24