better logging, MathMath error