replaced obj_uri_for with uri everywhere