support stand-alone & tpunit integration