Hi, There is a bug in texutil.rb Here is a simple test. Create test.tex \def\runprogram#1% {\installprogram{echo "#1"}} \starttext \runprogram{test} \runprogram{test again} \stoptext and texexec it. Everything is fine at the TeX end, the tui file says e p {echo "test"} e p {echo "test again"} However, the output says TeXUtil | programs: 2 TeXUtil | tuo file saved TeXUtil | running echo "test" "test" TeXUtil | running echo "test" "test" TeXExec | runtime: 0.892 that is, the first command was run both times. Looking into texutil.rb, I think that the bug is in the definition of Myextras::finalizer method. In /scritps/ruby/base/texutil.rb change def MyExtras::finalizer(logger) unless (ENV["CTX.TEXUTIL.EXTRAS"] =~ /^(no|off|false|0)$/io) || (ENV["CTX_TEXUTIL_EXTRAS"] =~ /^(no|off|false|0)$/io) then @@programs.each do |p| cmd = @@programs[p.to_i] #AM: why p.to_i #AM: p is the name of the program, hence a string #AM: p.to_i evaluates to 0 always, explaining the bug logger.report("running #{cmd}") system(cmd) end end end to def MyExtras::finalizer(logger) unless (ENV["CTX.TEXUTIL.EXTRAS"] =~ /^(no|off|false|0)$/io) || (ENV["CTX_TEXUTIL_EXTRAS"] =~ /^(no|off|false|0)$/io) then @@programs.each do |cmd| logger.report("running #{cmd}") system(cmd) end end end and everything runs correctly. Hraban, I have not tested this with lilypond, but this may be part of the problem there. Aditya