updated to conform to last api changes introduced with the replica support

NOTE: the cmdline client is still not aware of replicas, something to put in the todo list