setup code for Idomap