adds support for printing output and uses PASS/FAIL for return code