adjustments to make index links fully work