add debug trace option