update to new spatial-math