first stab at a new java client