read a list of filenames and do right things