changed extract to overwrite mode