updates for json and peer play