added countrydata and json request to main script