index: add debug() calls