fix exceptions to not suck and use new kodex stuff