added extract script