wait for leader to be ready
better append logging