adopted to new websockets backend