more methods for java interoperability