STDIN and STDOUT support