clear out tmp before extracting to it