tweaks to SNS code for email