update class imap