begin adding email functionality