added jni part, app work