implement serialisation of the pipeline

pipeline functions need to be registerd if they are to be serialised
the pipeline will issue warnings about using unregistered pipeline functions