handle panics
need to raise the int