refactor empty gzip file creation