remove xsocket related code