revised snp_pipe.bpipe