fixed a few bugs, next: change hb data to leaderelection