revise xRead , now it will automatic recognize file format