finished up IDT; fixes #2