added graph creation to xml