finished the java client, without debugging it yet