add device index debug