add some templating stuff for result.rb