correct exceptions processing