update to support the new reservoir.js-math format