iterated version to include simplified fetch_json solution