fix error message and only interpret header row when asked