template update for sockets