attach url and urlRoot directly to the model