add limited Java API