modification to bi_pipe_parent