more work on the math libs