ensure imap php extension is enabled
add phab
migrate api
much more better login handling