start encapsulating lua