updated reflect api to handle canonical ids