S Africa's ANC tries to hold on to legacy