improved java-bindings