move templating to Kmisc