adding `save_gz` setting
creating the compressed file
unsetting $z_file