better debug printing for tun