replace blockFilter to JNI