handle canonical ids