email script rewriting almost done