added leader election using isHostPort