changed structure of pipelines, added new methods