some bugfixes in the template functions and /boot image creation working