updated tagging script