additions for email sending