add debug tools.