update api end-point to use public api