further lua stack refactoring