add template support && disable annoying debug trace