better printing out of the exception cases