intercept sockets + better testing