added support for extending models