updated tag script