add option to choose whether to prefer XDR
s