support for slave and sentinel clients - closes #3