changed order of exception handlers