gzip feature and minor fixes

ok changed