we could call this ensureIndex in the constructor, no?