first attempt at java client usage
ignore ~ files