improvements to the errors