leader election fixed up and tested like a charm