added support for tar archives