BUGFIX: using correct sockets