BU
added some graph and error stuff