outstream and errstream don't actually appear to be used?