added STDIN and STDOUT