small changes to json recieving