adds minor improvements to json fetching