wireup idmap and stuff