added history graph support