terrier debug stuff