made some progress on moving from old sigma js code to the new v1.0 draft code