updates for the new graphing package, separated from SM