data extraction script