update for new language-lua, continue implementing lua backend