better handling of tar