fiddly bits to get index rendering