modify execption handle