add debug console, before/during/after typing hooks