make cross browser chat work, handle reloads better