keep parts if keep_tmp is True.