extended the code to be able to read in the SPex Data