changed xpc method to socket