add Math.min in math envs, for now