CFY-1373 use new ctx api in relationships