solved issue with output buffering of popen results