fixed socket.io server initialization