changes to machscriptnew

untested