add a debug mode to instruments