added support for model resolution