fix against use of imap()
updated requirements