add debug tool to print