make protocol errors more informative