additional debug to find out why the wrong url is being returned