add missing server jni functions
finish up server native code