adding ability to handle gzip compression