add support for extensions like .tar.gz