updated Java and API