finish up client jni code