connect sockets to models