fix for reading the output of an external tool