updates to the mail script
updates