add debug instrument