some code for lua wax test