replace socket.io by long-polling + fix alerts