ugly hack to make template self-resizable - involves reboot :(