attempting to move gzip into publish routine