minor mod in email script