fix urlRoot func for cards