update mails && logic