improved library assertion messages