remove all socks-based code