fixes #3103 - config templates
fixes #1646 - enable cloning of templates