rework leader election to work properly if a leader already exists
Fixed GMS coredump
clean up the leader elect fix
fix leader election algorithm