Handle obsolete ids, and other stuff