locate the file automatically