modify lua template source code