fixed exposed apis in java