added get_mail_headers, fix disconnect, +minor changes