added overwrite check for extraction