fixed up parts of the pipeline