debug index script