raise InvalidInputFileError instead of StandardError