sloppy, simple support for stdin/stdout/stderr