lua code, tests, noodling