wip: working on fancy indexing