properly reads in and parses from xml files