add scan_parallel to JNI call