more work on exception formatting