troubleshooting checking for the existence of files