use sane IDs in tree view (with backwards compatibility)