use urlRoot for model, add return at the end of non-return function