adds flag raise_exceptions