make socket.io listening correctly