gzip wrapper
golint complained (rightly so) about the if block here