changes for new pipeline::Wrap<T>