data extraction script updated