remove main_pipe