merge Add write buffer for tar writes