improved error messages on unexpected column count