encapsulate lua script into "user" table