Hi, I run into the following error with the new version: 'luatools --generate' results in Error in lua file loading: r:\tex\texmf-mswin\bin\luatools.lua:1402: attempt to call field 'gettimeofday' (a nil value) There seems to be no 'os.gettimeofday' under Windows XP. This patch of luatools.lua works here (better check twice) :D if os.gettimeofday then os.clock = os.gettimeofday local startuptime = os.gettimeofday() function os.runtime() return os.gettimeofday() - startuptime end end -- if os.gettimeofday then -- os.clock = os.gettimeofday -- end -- do -- local startuptime = os.gettimeofday() -- function os.runtime() -- return os.gettimeofday() - startuptime -- end -- end Best wishes, Peter