basic working java client lib