adds support for base class resolving on model builder