adding gzip compressions to handlers