start mapping public api to jni methods