basic sankey functionality