leader: prefer new format
leader: use global ID, optimize error handle