fixing problems with websockets