added .gz handling