instead of initiating zookeeper connection in elect function, passing in connected zookeeper object in options