introduce a pipeline class to simplify interactions across pipelines