accept input from STDIN (instead of files)