email export & fix login