more corrections to xdm socket output