new bugfixes (mostly tpl cache + db)