fix: the file input stream is replaced with gzip file input stream without memory and file descriptor leaks