fixed opening gzip files