serializing also the pipeline