wrangling with server stuff, but meanwhile here's a rough slopegraph implementation