solved issue of intermittent socket.io failures. fixes #23