add new events for imap and keymanager