templates

a fresh version of  #453