modify the cat exception handler