improved alerts backend