started code to read in xs file