globally deal with exceptions and domains