adds feature: accept .gz files as input