added support of .gz files