pipeline.py: new version