adding JNI