debug edits and tag.txt output