debugging cmd in run_tooltool