replace open_pipe with Open3.popen2e