sockets separated to the dir sockets, implemented auth check for socket connection