BF: check for the case that a file cannot be parsed properly - make sure it handles such an error correctly