JJ: fix call for socket