got leader election working