refined filtering on exception handling