implement gzip compression in init