json stuff

lots of json stuff