refactor: avoided using Lua 5.1's module() function for defining our Lua modules because it has bad side effects.