hackish get JNIEnv everywhere but it works better