unused exception
refactored to remove some fields from the switch record