add exception printing