added initial, extremely rough conversion of pipeline to Bpipe form