change Popen4 to open4