update jni to use keywords