fixed wrong assumption about Popen