removed old jni wrapper
fixed jni bugs