writing gz encoded file aside