improve error message for  parsing errors.