added the --pipeline switch to support user-defined pipelines