experimental partial jni support