make otrsocket as just another stage of the pipeline