expanding work template and work.rb