refactor index module with new interface.
before deposible.
make cursor disposible
4.2