added better support for unlocalized models and inheritance