change the ldm entrypoint to v2 and define a poll function to poll a given URI