wrote parser to read in schema