Added class for remote cohorte
reorg of TM initialization code