added basic java binding