added handling of missing urls