extraction script