updated runpipeline.sh