added some graphing utility