update with json stuff