changing to send email to terminals