improvements to sumstats error messages