templating & search