instrumenting & debug print for tangle