add .gz support too