debugging kbest