point to the correct API url