update lib with better failing message