simplify id types and related stuff