move private methods to the top of the Hm_IMAP class