updated extract.sh