Make @res and @dom inheritable ;)