addedd extract script, moved upload parameters to config file.