added gz file input