mv headers, then body in case we're interrupted