add support for xdphys 2.47 as well as gziped files