.tar.gz parsing fix