this looks copy&paste of ensureIndex few lines down......?