fixed server delegate func