fixes for JNI extraction and verbose logging