prepare for on demand
compatible with on demand
compatible with on demand: size the index
reset index
fixed state flags ready,empty,read, to be cleanup