added pprint to exceptions