improve election process, support session expired.