raise err if no file is found