fixed extension bug not supporting gziped files properl