made single script recursive to grep the endpoint urls