changed to fetch json in prep for db access