losing messages on connection