support both implicit and explicit inheritance with THEMES