modify JNI interface