ensure helpful messages for exceptions