working on lightweight splindex class