provide a better error message when a file doesn't exist