make prefix index building/reading optional