check that the files exist