better formatting of tag warnings and generalization of filtering script