final touches to pipeline.sh