created a new port for MathGL