modify exception handler