debugging, and fix for tags search false positives
improve tracing output