move templates to m4, to make qv cache filenames flat. add titles/ylabels