fix for popen