changed label-req-for to build idmap instead of traverse dom for every lookup, closes #47