updated to reflect changes in websocket response data structure