support reading filenames from stdin