fixed lookup of native handles and did further basic work for exception support