updated extract script
updated extract script