extraction script example