realized that socket.io got required later in teh code