given up on Scala-JNI for now