[wip-cls-lua]

This is getting closer but I am now failing all of the tests.