single-country extraction script