probably fixed issue where websocket would suddenly crash