update template lua runtime