add debug info to index of /api