simplify GZOut and remove some apparently copy/pasted code