added reading filenames from file