add more details to error messages