improved error messages