java interop
various fixes