add support for folder download (tar)