canonical id handling