adding extract script