wolfram script improvements