only set xdm flag if XDM is loaded successfully