changes to allow easy porting of pipeline scripts