index: reduce complexity of client.add()