preprocessing in lua