fix for broken models - dont assume model is function or object