added STDIN Mode