support for reading from STDIN