added main.lua and changed globals