more explicit checking of files list