added default to read input from stdin
updates