initial sync version with plain old java driver