updated java api