added info to the script, gathering data for tags