figured out popen3 for stderr logging