better file error handling