adding in json parsing