check that file exists