mitch you didnt answer Garham
and as my experience with the jump between this 2 version in his question you have yours answer
the big different i had in that 2 version was in function in lua
new version can use same function name in 2 diferent M function
also each function cant see any other variables ,all variables act like privet for that function(i mean the function iside the M function)
so my sugest its first test yours M function ,debug them and see if you can compile
work with old ver its can help you this time but its cant be answer for long time
they explain after that the reason its worked with old version was mistake
but this didnt help me ,because i had change all my function