splited lua from parser
completed refactoring