add safeint exception code