improve failure messages