wrapped theme handling in initTheme