add debug messages to terrier-core