first version without multiple sockets