added gz support