now with working alert mails