mostly done with leader election, need to fix timeouts'