gzip feature and minor fixes

why remove this line?