bugfix: embedded templates