work on a set of files