first attempt to bring in email functionality