changed the detection of exception flow for new regular/exception control flow