support for stdin/out