factory for pipelines