extracting exceptions